Optimal. Leaf size=172 \[ \frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{d \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} \sqrt{b}}+\frac{x \left (a g+b c+b d x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.164898, antiderivative size = 172, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.194, Rules used = {1858, 1876, 275, 208, 1167, 205} \[ \frac{\tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (-\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{\tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e-a g+3 b c\right )}{8 a^{7/4} b^{5/4}}+\frac{d \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} \sqrt{b}}+\frac{x \left (a g+b c+b d x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1858
Rule 1876
Rule 275
Rule 208
Rule 1167
Rule 205
Rubi steps
\begin{align*} \int \frac{c+d x+e x^2+f x^3+g x^4}{\left (a-b x^4\right )^2} \, dx &=\frac{x \left (b c+a g+b d x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}+\frac{\int \frac{3 b c-a g+2 b d x+b e x^2}{a-b x^4} \, dx}{4 a b}\\ &=\frac{x \left (b c+a g+b d x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}+\frac{\int \left (\frac{2 b d x}{a-b x^4}+\frac{3 b c-a g+b e x^2}{a-b x^4}\right ) \, dx}{4 a b}\\ &=\frac{x \left (b c+a g+b d x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}+\frac{\int \frac{3 b c-a g+b e x^2}{a-b x^4} \, dx}{4 a b}+\frac{d \int \frac{x}{a-b x^4} \, dx}{2 a}\\ &=\frac{x \left (b c+a g+b d x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}+\frac{d \operatorname{Subst}\left (\int \frac{1}{a-b x^2} \, dx,x,x^2\right )}{4 a}-\frac{\left (3 b c-\sqrt{a} \sqrt{b} e-a g\right ) \int \frac{1}{-\sqrt{a} \sqrt{b}-b x^2} \, dx}{8 a^{3/2} \sqrt{b}}+\frac{\left (3 b c+\sqrt{a} \sqrt{b} e-a g\right ) \int \frac{1}{\sqrt{a} \sqrt{b}-b x^2} \, dx}{8 a^{3/2} \sqrt{b}}\\ &=\frac{x \left (b c+a g+b d x+b e x^2+b f x^3\right )}{4 a b \left (a-b x^4\right )}+\frac{\left (3 b c-\sqrt{a} \sqrt{b} e-a g\right ) \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 a^{7/4} b^{5/4}}+\frac{\left (3 b c+\sqrt{a} \sqrt{b} e-a g\right ) \tanh ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{8 a^{7/4} b^{5/4}}+\frac{d \tanh ^{-1}\left (\frac{\sqrt{b} x^2}{\sqrt{a}}\right )}{4 a^{3/2} \sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.314004, size = 221, normalized size = 1.28 \[ \frac{\frac{4 a^{3/4} \sqrt [4]{b} (a (f+g x)+b x (c+x (d+e x)))}{a-b x^4}-\log \left (\sqrt [4]{a}-\sqrt [4]{b} x\right ) \left (2 \sqrt [4]{a} b^{3/4} d+\sqrt{a} \sqrt{b} e-a g+3 b c\right )+\log \left (\sqrt [4]{a}+\sqrt [4]{b} x\right ) \left (-2 \sqrt [4]{a} b^{3/4} d+\sqrt{a} \sqrt{b} e-a g+3 b c\right )+2 \sqrt [4]{a} b^{3/4} d \log \left (\sqrt{a}+\sqrt{b} x^2\right )-2 \tan ^{-1}\left (\frac{\sqrt [4]{b} x}{\sqrt [4]{a}}\right ) \left (\sqrt{a} \sqrt{b} e+a g-3 b c\right )}{16 a^{7/4} b^{5/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.008, size = 289, normalized size = 1.7 \begin{align*}{\frac{1}{b{x}^{4}-a} \left ( -{\frac{e{x}^{3}}{4\,a}}-{\frac{d{x}^{2}}{4\,a}}-{\frac{ \left ( ag+bc \right ) x}{4\,ab}}-{\frac{f}{4\,b}} \right ) }-{\frac{g}{8\,ab}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }+{\frac{3\,c}{8\,{a}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ) }-{\frac{g}{16\,ab}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{3\,c}{16\,{a}^{2}}\sqrt [4]{{\frac{a}{b}}}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{d}{8\,a}\ln \left ({ \left ( -a+{x}^{2}\sqrt{ab} \right ) \left ( -a-{x}^{2}\sqrt{ab} \right ) ^{-1}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{e}{8\,ab}\arctan \left ({x{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+{\frac{e}{16\,ab}\ln \left ({ \left ( x+\sqrt [4]{{\frac{a}{b}}} \right ) \left ( x-\sqrt [4]{{\frac{a}{b}}} \right ) ^{-1}} \right ){\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 169.346, size = 1406, normalized size = 8.17 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08497, size = 528, normalized size = 3.07 \begin{align*} -\frac{b x^{3} e + b d x^{2} + b c x + a g x + a f}{4 \,{\left (b x^{4} - a\right )} a b} + \frac{\sqrt{2}{\left (2 \, \sqrt{2} \sqrt{-a b} b^{2} d + 3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (-a b^{3}\right )^{\frac{1}{4}} a b g + \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (-\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (-\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{16 \, a^{2} b^{3}} + \frac{\sqrt{2}{\left (2 \, \sqrt{2} \sqrt{-a b} b^{2} d + 3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (-a b^{3}\right )^{\frac{1}{4}} a b g + \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (-\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (-\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{16 \, a^{2} b^{3}} + \frac{\sqrt{2}{\left (3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} + \sqrt{2} x \left (-\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{-\frac{a}{b}}\right )}{32 \, a^{2} b^{3}} - \frac{\sqrt{2}{\left (3 \, \left (-a b^{3}\right )^{\frac{1}{4}} b^{2} c - \left (-a b^{3}\right )^{\frac{1}{4}} a b g - \left (-a b^{3}\right )^{\frac{3}{4}} e\right )} \log \left (x^{2} - \sqrt{2} x \left (-\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{-\frac{a}{b}}\right )}{32 \, a^{2} b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]